<?php
//测试环境显示报错
ini_set('display_errors', 'On'); //Off,On
error_reporting(E_ALL); //0,E_ALL & ~E_NOTICE
try{
	//定义代码路径
	define('APPLICATION_ROOT', dirname(dirname(dirname(dirname(__FILE__)))));
	define('CORE_ROOT', dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/core');

	//定义默认控制
	defined('ACT')			||	define('ACT', basename(dirname(__FILE__)));
	defined('ACT_NAME')		|| define('ACT_NAME', basename( dirname(dirname(__FILE__)) ).'/'.ACT);
	defined('YEAR')			||	define('YEAR', basename(dirname(dirname(__FILE__))));
	defined('ACT_TITLE')	||	define('ACT_TITLE', '宝贝评选');
	defined('ACT_PATH')		||	define('ACT_PATH', basename( dirname(dirname(__FILE__)) ).'/'.ACT);
	defined('ACT_FILE') || define('ACT_FILE',ACT_PATH);
	define('DEFAULT_CONTROL', ACT_PATH.'/index');
	
	
	require_once(CORE_ROOT . '/runtime.php');
}catch (ExceptionBox $e){
	echo $e->getMessage();
}
?>
